package com.jiaai.cloud.live.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.jiaai.cloud.gift.entity.TLiveGift;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 主播任务列表
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-08-17
 */
@TableName("t_anchor_task")
public class TAnchorTask extends Model<TAnchorTask> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 主播Id
     */
	private String anchorId;
    /**
     * 任务名称
     */
	private String taskName;
    /**
     * 礼物Id
     */
	private Integer giftId;
    /**
     * 完成
     */
	private Integer finish;
    /**
     * 礼物数量
     */
	private Integer giftNumber;
    /**
     * 任务审核(-1 失败，0待审核 1通过 2已发布,3取消发布)
     */
	private Integer status;
	@JSONField(format = "YYYY-MM-dd")
	private Date createTime;

	@TableField(exist = false)
	private List<TLiveGift> giftList;

	public List<TLiveGift> getGiftList() {
		return giftList;
	}

	public void setGiftList(List<TLiveGift> giftList) {
		this.giftList = giftList;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAnchorId() {
		return anchorId;
	}

	public void setAnchorId(String anchorId) {
		this.anchorId = anchorId;
	}

	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public Integer getGiftId() {
		return giftId;
	}

	public void setGiftId(Integer giftId) {
		this.giftId = giftId;
	}

	public Integer getFinish() {
		return finish;
	}

	public void setFinish(Integer finish) {
		this.finish = finish;
	}

	public Integer getGiftNumber() {
		return giftNumber;
	}

	public void setGiftNumber(Integer giftNumber) {
		this.giftNumber = giftNumber;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
